<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML>
<html>
<head>
<meta name="renderer" content="webkit">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>守合同重信用协会</title>
<link href="./css/jquery.slideBox.css" rel="stylesheet" type="text/css" />
<link href="./css/index.css" rel="stylesheet" type="text/css" />
<link href="css/common.css" rel="stylesheet" type="text/css" />
<link href="./css/swiper.css" rel="stylesheet" type="text/css" />
</head>
<body>



	<!-- 静态包含 -->
	<%@include file="head.jsp"%>
	<!--主内容区-->
	<div class="main clearfix">
		<!--协会动态-->
		<div class="modal fl2">
			<div class="modal-title">
				<h4 class="active">协会动态</h4>
				<a
					href="news_findByPage?categoryId=${tupian.get(0).category.cate_id }"><img
					src="./images/gd.png" title="更多"></a>
			</div>
			<div class="contain">
				<div class="pic">
					<div id="ad-contents" class="slideBox">
						<ul class="items">
							<c:forEach items="${tupian }" var="tp">
								<li><a href="news_findById?news_id=${tp.news_id }"
									title="${tp.news_title }" target="_blank"><img
										src="${tp.img }"></a>
							</c:forEach>
						</ul>
					</div>
				</div>
				<!-- 文字新闻 -->
				<ul id="navigation">
					<s:iterator value="dongtai" var="dt" status="n">
						<s:if test="#n.index==0">
							<li class="hover">
						</s:if>
						<s:else>
							<li>
						</s:else>
						<div class="title clearfix">
							<span><s:property value="#n.index+1" /> </span>
							<h3>
								<s:property value="#dt.news_title" />
							</h3>
							<div class="time">
								<s:property value="#dt.news_time" />
							</div>
						</div>
						<a href="news_findById?news_id=<s:property value="#dt.news_id"/>"
							target="_blank">
							<p>
								<s:property value="#dt.news_summary" />
							</p>
						</a>
						</li>
					</s:iterator>
				</ul>
			</div>
		</div>
		<!--搜索-->
		<div class="modal  fl1" id="tab">
			<div class="modal-title">
				<h4 class="active">协会查询</h4>
			</div>
			<form class="show" action="company_findPbByName" method="post">
				<dl>
					<dd>
						<label>企业名称 :</label>
					</dd>
					<dt>
						<input type="text" name="company.comp_name"
							placeholder="请输入查询企业名称" id="compmanpyname">
					</dt>
				</dl>

				<dl class="yzm">
					<dd>
						<label>验证码 :</label>
					</dd>
					<dt class="code">
						<input type="text" name="code" id="code">
					</dt>
					<dt id="pic-code">
						<img src="logCheck_logCheck" id="codeImg">
					</dt>
					<dt id="pic-change">
						<img src="images/change.png" onclick="resetCode()">
					</dt>
				</dl>

				<button type="button" id="searchId" onclick="searchcompany()">查询</button>
				<!-- <button type="submit">查询</button> -->
				<button type="reset" class="other">重置</button>
			</form>
		</div>
		<!--通知公告-->
		<div class=" modal tzgg" id="tab1">
			<div class="modal-title">
				<h4 class="active">通知公告</h4>
				<a
					href="news_findByPage?categoryId=${tongzhi.get(0).category.cate_id }"><img
					src="./images/gd.png" title="更多"></a>
			</div>
			<ul>
				<s:iterator value="tongzhi" var="tz" status="num">
					<li><a
						href="news_findById?news_id=<s:property value="#tz.news_id"/>"
						target="_blank"><s:property value="#tz.news_title" /> </a><span></span></li>
				</s:iterator>
			</ul>
		</div>
		<!--协会查询  文件下载-->
		<div class="modal xhcx">
			<div class="cx one">
				<a href="http://www.gsxt.gov.cn/index.html" target="_blank"> <img
					src="./images/xhcx.png" />
					<div class="cover"></div>
				</a>
			</div>

			<div class="cx two">
				<a href="news_findByPage?categoryId=6"><img
					src="./images/wjxz.png" />
					<div class="cover"></div> </a>
			</div>
		</div>
		<!--信息信用 信用资料-->
		<div class="xyzl modal" id="tab2">
			<div class="modal-title">
				<h4 class="active">媒体聚焦</h4>
				<h4>信用资料</h4>
				<a
					href="news_findByPage?categoryId=${xyxx.get(0).category.cate_id }"><img
					src="./images/gd.png" title="更多"></a>
			</div>

			<ul>
				<s:iterator value="xyxx" var="xx" status="n">
					<li class=""><a
						href="news_findById?news_id=<s:property value="#xx.news_id"/>">
							<div class="photo">
								<%-- <img src="./images/c0<s:property value="#n.index+1"/>.jpg" /> --%>
								<img  src="${xx.img }">
							</div>
							<div class="right">
								<h5>
									<s:property value="#xx.news_title" />
								</h5>
								<p>
									<s:property value="#xx.news_summary" />
								</p>
								<span><s:property value="#xx.news_time" /> </span>
							</div>
					</a></li>
				</s:iterator>
			</ul>

			<ul class="xyxx clearfix">
				<s:iterator value="xyzl" var="xx" status="n">
					<li class=""><a
						href="news_findById?news_id=<s:property value="#xx.news_id"/>">
							<div class="photo">
								<img  src="${xx.img }">
							</div>
							<div class="right">
								<h5>
									<s:property value="#xx.news_title" />
								</h5>
								<p>
									<s:property value="#xx.news_summary" />
								</p>
								<span><s:property value="#xx.news_time" /> </span>
							</div>
					</a></li>
				</s:iterator>
			</ul>
		</div>
		<!--国家政策-->
		<div class="tzgg modal" id="tab3">
			<div class="modal-title">
				<h4 class="active">相关政策</h4>
				<a
					href="news_findByPage?categoryId=${zhengce.get(0).category.cate_id }"><img
					src="./images/gd.png" title="更多"></a>
			</div>

			<ul>
				<s:iterator value="zhengce" var="zc" status="num">
					<li><a
						href="news_findById?news_id=<s:property value="#zc.news_id"/>"
						target="_blank"><s:property value="#zc.news_title" /> </a><span><s:property
								value="#zc.news_time" /> </span></li>
				</s:iterator>
			</ul>
		</div>
		<!--协会简介-->
		<div class="modal xhjj">
			<div class="modal-title">
				<b>协会简介</b> <a href="#"><img src="./images/gd.png" title="更多"></a>
			</div>
			<p>新疆维吾尔自治区守合同重信用企业协会（以下简称 协会）。英文名称：XinJiang Uyur Autonomous Rsg
				ions EN-TERPRISE CREDIT ASSOCIATION,缩写：XJE-
				CA。协会是由会员自愿组成的非盈利性社会组织，协会 的宗旨：遵守宪法、法律、法规和国家政策，遵守社会 道德风尚；</p>
			<a href="aboutus.jsp" class="detail">[查看详情]</a>
		</div>
		<!--会员风采-->
		<div class="modal hyfc">
			<div class="modal-title">
				<h4 class="active">会员风采</h4>
				<a href="#"><img src="./images/gd.png" title="更多"></a>
			</div>
			<div class="workbench">
				<a class="arrow-left"><img src="images/left.png" /></a> <a
					class="arrow-right"><img src="images/right.png" /></a>
				<div class="swiper-container">
					<div class="swiper-wrapper">
						<div class="swiper-slide">
							<ul class="tools">
								<c:forEach items="${fengcai }" var="fc" begin="0" end="4">
									<li><a href="news_findById?news_id=${fc.news_id }"><img
											src="${fc.img }" /></a></a></li>
								</c:forEach>
							</ul>
						</div>
						<div class="swiper-slide">
							<ul class="tools">
								<c:forEach items="${fengcai }" var="fc" begin="5" end="9">
									<li><a href="news_findById?news_id=${fc.news_id }"><img
											src="${fc.img }" /></a></li>
								</c:forEach>
							</ul>
						</div>
					</div>
				</div>
				<div class="swiper-pagination"></div>
			</div>
		</div>
		<!--底部-->
		<div style="clear: both;"></div>
	</div>



	<!------页脚------>
	<%@include file="/foot.jsp"%>
	<!------JS部分------>
	<script type="text/javascript" src="js/jquery.slideBox.min.js"></script>
	<script type="text/javascript" src="js/swiper.min.js"></script>
	<script type="text/javascript" src="js/index.js"></script>
	<script type="text/javascript">
//搜索信息
	function searchcompany(){
		var code = $("#code").val();
		var name = $("#compmanpyname").val();
		$.post("logCheck_checkCode?code="+code,function(data){
			if(data==0){
				alert("验证码错误!");
			}else{
				window.location.href="company_findPbByName?code="+code+"&company.comp_name="+name;
			}
		});
	}
	
	function resetCode(){
		//重置验证码
		$("#codeImg").attr("src","logCheck_logCheck?k="+Math.random());
	}
</script>
</body>
</html>
